var mongoose = require('mongoose'),
    materializedPlugin = require('mongoose-materialized'),
    Schema = mongoose.Schema;

var NewscateSchema = new Schema({
    text: {type: String},
    type:Number
});
    
NewscateSchema.plugin(materializedPlugin);

module.exports= mongoose.model('Newscate', NewscateSchema,'newscates');





